import { closeLoading, showLoading } from '../util/loading-utils'
import { r } from '../util/log-utils'
import init from './init'

export const createIcon = async () => {
  showLoading('Generating, please wait...')
  try {
    await init()
    closeLoading()
  } catch (e: any) {
    closeLoading()
    r(e.message)
  }
}
